package com.m1905hd.service;


import com.m1905hd.entity.Resource;
import com.m1905hd.model.BuiMenu;

import java.util.List;
import java.util.Set;

/**
 * @author weiwei.huang
 * @email ihuangweiwei@163.com
 * @date 15/3/31
 */
public interface ResourceService extends BaseService<Resource> {


    Set<String> findPermissions(Set<Integer> ids);

    List<Resource> findMenus(Set<String> permissions);

    BuiMenu getBuiMenuConfig(Set<String> permissions);

    List<Resource> findAll();

    Resource findByParentId(int id);
}
